﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using KVB.Common;
using Customer_Profile.eCard.DBDao;
using Customer_Profile.Admin;

namespace Customer_Profile.eCard.Settle
{
    public partial class SettleTransferDetail : System.Web.UI.Page
    {        
        string settletransfer_id;
        string strUserName = "";
        string strUserID = "";
        string strEntity = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["settletransfer_id"] != null)
            {
                settletransfer_id = Request["settletransfer_id"].ToString();
            }

            Comm.CheckSession(this.Page, "/login.aspx", "usermodel");
            if (Session["usermodel"] != null)
            {
                strUserID = ((UserInfoEntity)Session["usermodel"]).UserLoginId;
                strUserName = ((UserInfoEntity)Session["usermodel"]).UserName;
                strEntity = ((UserInfoEntity)Session["usermodel"]).UserOffice;
            }
            else
            {
                Log.WriteDefaultLog("main_01 Page_Load", "Session is null");
                return;
            }
            if (!Page.IsPostBack)
            {

              
            }
            bindGrid();
        }

        private void bindGrid()
        {
            DataSet ds = DealDao.getSettleSubList(settletransfer_id);
            gridReward.DataSource = ds;
            gridReward.DataBind();
        }
    }
}